package com.echo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 课程问卷调查表
 * </p>
 *
 * @author echo
 * @since 2025-02-23
 */
@TableName("questionnaire")
public class Questionnaire implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 问卷ID
     */
    @TableId(value = "questionnaire_id", type = IdType.AUTO)
    private Integer questionnaireId;

    /**
     * 关联课程ID
     */
    private Integer courseId;

    /**
     * 问卷标题
     */
    private String title;

    /**
     * 问卷描述
     */
    private String description;

    /**
     * 问卷问题（关联文件问题表，多个则按照-进行连接）
     */
    private String questionnaireQuestionId;

    /**
     * 问卷开始时间
     */
    private LocalDateTime startTime;

    /**
     * 问卷结束时间
     */
    private LocalDateTime endTime;

    public Integer getQuestionnaireId() {
        return questionnaireId;
    }

    public void setQuestionnaireId(Integer questionnaireId) {
        this.questionnaireId = questionnaireId;
    }
    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    public String getQuestionnaireQuestionId() {
        return questionnaireQuestionId;
    }

    public void setQuestionnaireQuestionId(String questionnaireQuestionId) {
        this.questionnaireQuestionId = questionnaireQuestionId;
    }
    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }
    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "Questionnaire{" +
            "questionnaireId=" + questionnaireId +
            ", courseId=" + courseId +
            ", title=" + title +
            ", description=" + description +
            ", questionnaireQuestionId=" + questionnaireQuestionId +
            ", startTime=" + startTime +
            ", endTime=" + endTime +
        "}";
    }
}
